package com.stylefeng.guns.modular.platform.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-26
 */
@TableName("t_user_task")
public class UserTask extends Model<UserTask> {

    private static final Long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 任务名称
     */
    private String taskName;
    /**
     * 任务需完成度
     */
    private Integer taskNums;

    public Integer getCompleteTaskNums() {
        return completeTaskNums;
    }

    public void setCompleteTaskNums(Integer completeTaskNums) {
        this.completeTaskNums = completeTaskNums;
    }

    /**
     * 已完成任务数
     */
    @TableField("taskNums")
    private Integer completeTaskNums;
    /**
     * 任务奖励金币数
     */
    private Integer taskReward;

    public String getTaskImage() {
        return taskImage;
    }

    public void setTaskImage(String taskImage) {
        this.taskImage = taskImage;
    }

    private String taskImage;

    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskNums() {
        return taskNums;
    }

    public void setTaskNums(Integer taskNums) {
        this.taskNums = taskNums;
    }

    public Integer getTaskReward() {
        return taskReward;
    }

    public void setTaskReward(Integer taskReward) {
        this.taskReward = taskReward;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserTask{" +
        "id=" + id +
        ", taskName=" + taskName +
        ", taskNums=" + taskNums +
        ", taskReward=" + taskReward +
        ", createTime=" + createTime +
        "}";
    }
}
